home *** CD-ROM | disk | FTP | other *** search
Wrap
/******************************************************************/ /* */ /* TurboCAD for Windows */ /* Copyright (c) 1993 - 2001 */ /* International Microcomputer Software, Inc. */ /* (IMSI) */ /* All rights reserved. */ /* */ /******************************************************************/ #if !defined(AFX_SDIDIALOG_H__13F08AB3_207F_11D2_A4B4_0000B465872B__INCLUDED_) #define AFX_SDIDIALOG_H__13F08AB3_207F_11D2_A4B4_0000B465872B__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 // SdiDialog.h : header file // #include "Toollist.h" #include "ViewWnd.h" #include "SmObj.h" ///////////////////////////////////////////////////////////////////////////// // CSdiDialog dialog class CSdiDialog : public CDialog { // Construction public: BOOL BeginDrag(const CPoint& point); void Drag(const CPoint& point); void RestartDrag(const CPoint& point); void EndDrag(const CPoint& point); bool m_DraggingMode; CExternalObjectsList m_list; CPreviewWnd m_wndView; VARIANT m_dragOutline; IGraphic* m_pDragGraphic; BOOL m_bDragging; RegenMethods *m_pRegMets; HRESULT hRes;/// = S_OK; DWORD m_dwEventConnection; CString m_selected; CSdiDialog(CInsSmObj* pTool, CWnd* pParent, RegenMethods *pRegMets); // standard constructor // Dialog Data //{{AFX_DATA(CSdiDialog) enum { IDD = IDD_DIALOG1 }; CString m_listbox; //}}AFX_DATA /// Graphics* m_pGrsVirt; void ConnectEvents(); void DisconnectEvents(); DECLARE_MESSAGE_MAP() afx_msg void BeforeExit(LPDISPATCH TheApp, BOOL FAR* Cancel); afx_msg void DrawingNew(LPDISPATCH WhichDrawing); afx_msg void DrawingOpen(LPDISPATCH WhichDrawing); afx_msg void DrawingActivate(LPDISPATCH WhichDrawing); afx_msg void DrawingDeactivate(LPDISPATCH WhichDrawing); afx_msg void DrawingBeforeClose(LPDISPATCH WhichDrawing, BOOL FAR* Cancel); afx_msg void DrawingBeforeSave(LPDISPATCH WhichDrawing, BOOL FAR* SaveAs, BOOL FAR* Cancel); afx_msg void WindowResize(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow); afx_msg void WindowActivate(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow); afx_msg void WindowDeactivate(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow); afx_msg void MouseDown(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, short Button, long Shift, long X, long Y, IMSI_BOOL* pbCancel); afx_msg void MouseUp(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, short Button, long Shift, long X, long Y, IMSI_BOOL* pbCancel); afx_msg void MouseMove(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, long Shift, long X, long Y, IMSI_BOOL* pbCancel); afx_msg void BeforeDoubleClick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel, BOOL FAR* Cancel); afx_msg void BeforeRightClick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel, BOOL FAR* Cancel); afx_msg void SelectionChange(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel); afx_msg void CommandBarControlHit(LPDISPATCH WhichControl, BOOL FAR* Cancel); afx_msg void CommandBarControlStatus(LPDISPATCH WhichControl); afx_msg void RunTool(LPDISPATCH WhichTool); afx_msg void PointSnapped(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, long XScreen, long YScreen, LPDISPATCH PointRaw, LPDISPATCH PointSnapped); afx_msg void PointPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled); afx_msg void RectanglePick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled); afx_msg void PolygonPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled); afx_msg void ViewBeforeRedraw(LPDISPATCH WhichDrawing, LPDISPATCH WhichView); afx_msg void ViewAfterRedraw(LPDISPATCH WhichDrawing, LPDISPATCH WhichView); afx_msg void VirtualIntersectionPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH PickResult, BOOL WasCanceled); afx_msg void CommandBarControlDone(LPDISPATCH WhichControl); afx_msg void Drop(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Selection); //}}AFX_DISPATCH DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSdiDialog) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual void PostNcDestroy(); //}}AFX_VIRTUAL // Implementation protected: CInsSmObj *m_pTool; HICON m_hIcon; View* m_pTCADView; CPoint m_ptMouseDown; // TurboCAD SDK: Pointer to the running application. IApplication* m_pIApplication; DWORD m_dwEventMask; // Generated message map functions //{{AFX_MSG(CSdiDialog) virtual BOOL OnInitDialog(); afx_msg void OnClose(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam ); afx_msg void OnInsertsymb(); //}}AFX_MSG afx_msg void OnEventMask(UINT nID); }; //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SDIDIALOG_H__13F08AB3_207F_11D2_A4B4_0000B465872B__INCLUDED_)